<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head></h:head>
<h:body>
<!-- <f:view locale="#{language.localeCode}">	 -->

	<h:form id="new_user_form">
		
		
		<p:panel id="new_user_panel" header="#{usr_msg.new_user}"
			style="margin-bottom:10px;">
			<p:growl id="growl" showDetail="true" sticky="true" />
			<!--<p:messages id="messages" />-->

			<h:panelGrid columns="2">
				<h:outputLabel for="login" value="#{usr_msg.new_login}" />
				<p:inputText id="login" required="true"
					value="#{editUserController.userBean.login}" />

				<p:outputLabel for="email" value="#{usr_msg.new_email}" />
				<p:inputText id="email" value="#{editUserController.userBean.email}" />

				<p:outputLabel for="activate" value="#{usr_msg.is_active}" />
				<p:selectBooleanButton id="activate" value="#{editUserController.userBean.active}" onLabel="#{usr_msg.yes}"
					offLabel="#{usr_msg.no}" onIcon="ui-icon-check" offIcon="ui-icon-close">
				</p:selectBooleanButton>

			</h:panelGrid>
			<p:commandButton actionListener="#{editUserController.createNewUser}"
				update=":new_user_form:new_user_panel" style="margin-right:20px;" value="#{usr_msg.save_button}" >
				<p:resetInput target="new_user_panel" />
			</p:commandButton>
		</p:panel>
	</h:form>

<!-- </f:view> -->
</h:body>
</html>